#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void main()
{
	int a[10], i, j, t;
	printf("Input 10 integer numbers:\n");
	for (i = 0; i < 10; i++)
		scanf("%d", &a[i]);
	printf("\n");
	for (j = 0; j < 9;j++)
	for (i = 0; i < 9 - j;i++)
	if (a[i]>a[i + 1])
	{
		t = a[i];
		a[i] = a[i + 1];
		a[i + 1] = t;
	}
	printf("The sorted numbers:\n");
	for (i = 0; i < 10; i++)
		printf("%d ", a[i]);
}